package com.dhcc.bpm.modules.sandbox.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @ClassName ReturnCode
 * @Description 返回码表实体类
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Data
@TableName("opc_return")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Return对象", description = "返回码表")
public class ReturnCode extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 返回码名称
     */
    @Excel(name = "返回码名称")
    @ApiModelProperty(value = "返回码名称")
    private String returnName;
    /**
     * 返回码编号
     */
    @Excel(name = "返回码编号")
    @ApiModelProperty(value = "返回码编号")
    private String returnCode;
    /**
     * 返回码表达式
     */
    @Excel(name = "返回码表达式")
    @ApiModelProperty(value = "返回码表达式")
    private String returnCodeExp;
    /**
     * 描述
     */
    @Excel(name = "描述")
    @ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
    private String describe;

    /**
     * 文档上传附件
     */
    @Excel(name = "文档报文上传附件")
    @ApiModelProperty(value = "文档报文上传附件")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long opcPluploadId;

    @Excel(name = "接口ID")
    @ApiModelProperty(value = "接口ID")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long apiId;

    /**
     * 排序
     */
    @Excel(name = "排序")
    @ApiModelProperty(value = "排序")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long codeSort;
    /**
     * 用例类型
     */
    @Excel(name = "用例类型")
    @ApiModelProperty(value = "用例类型")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long returnType;
    /**
     * 用例优先级
     */
    @Excel(name = "用例优先级")
    @ApiModelProperty(value = "用例优先级")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long returnLevel;
    /**
     * 用例性质
     */
    @Excel(name = "用例性质")
    @ApiModelProperty(value = "用例性质")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long returnNature;
}
